﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LaunchAllaround.DesignPattern.MVC
{
    [Serializable]
    class NamedModelImpl<T> : ModelImpl<T>, NamedModel<T> where T : NamedModel<T>
    {

        private string name;


        public NamedModelImpl() : this(""){}
        public NamedModelImpl(string name)
        {
            this.name = name;
        }

        

        public string GetName()
        {
            return this.name;
        }

        public void SetName(string name)
        {
            this.name = name;
        }
    }
}
